package com.ruoyi.douyin.utils;

import java.util.Map;

public class HttpUtils {
    public static String paramAdd(String url, Map<String, Object> param) {
        url += "?";
        StringBuilder urlBuilder = new StringBuilder(url);
        for (String key : param.keySet()) {
            urlBuilder.append(key).append("=").append(param.get(key)).append("&");
        }
        urlBuilder.deleteCharAt(urlBuilder.length() - 1);
        url = urlBuilder.toString();
        return url;
    }
}
